html,
body,
#app {
    margin: 0;
    padding: 0;
}

html.dark {
    color: #e5e7eb;
    background: #121212;
}

.prose {
    scroll-behavior: smooth;
}

#nprogress {
    pointer-events: none;
}

#nprogress .bar {
    @apply bg-purple-700 bg-opacity-75;

    position: fixed;
    z-index: 1031;
    top: 0;
    left: 0;

    width: 100%;
    height: 2px;
}

/*
* 全局滚动条
*/
::-webkit-scrollbar {
    width: 0;
    height: 10px;
}

::-webkit-scrollbar-thumb {
    border-radius: 2px;
    background: #e3ece7;
}

::-webkit-scrollbar-track {
    opacity: 0;
}

html.dark ::-webkit-scrollbar,
html.dark ::-webkit-scrollbar-track {
    background-color: #212529;
}
